home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000051_icon-group-sender _Tue Feb 20 15:13:15 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
2KB
Received: by cheltenham.cs.arizona.edu; Tue, 20 Feb 1996 17:50:39 MST
Date: Tue, 20 Feb 1996 15:13:15 -0800
From: kwalker@orville.premenos.com (Ken Walker)
Message-Id: <199602202313.PAA22713@varda.premenos.com>
To: icon-group@cs.arizona.edu
Subject: Re: procedure names
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Md5: 23afWjlx3XjXsqNJ0X26qg==
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
You can determine procedure names by using the display() function to
write information about variables to a file. You can then read the
file back in and look for global variables with procedure values. String
scanning makes it pretty easy to parse the file.
Ken Walker, kwalker@premenos.com
Premenos Coporation, Concord, Ca. 94520
> Date: Fri, 16 Feb 96 16:25:36 CST
> From: escargo@anubis.network.com (David S. Cargo)
>
> Is there any way for a program to find out the names of procedures that
> are in the program? I'm thinking about measuring test-coverage by
> determining if a procedure has been called or not. I'd like to use the
> preprocessor to either insert a prodecure name in a set or increment a
> counter in a table when a procedure is called. While this can mark
> when procedures are called, it can't tell when a procedure is not
> called. This would be something like tcl's "info procs" command.
>
> Examining the .u1, .u2, or .icx files might be acceptable, but I'd
> like a source-level solution.